<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 * @author   howe <howe1995@163.com>
 */

namespace App\Constant\Database;

class MessageEnum
{
    public const TEXT = 'text';

    public const VIDEO_CALL = 'video_call';

    public const AUDIO_CALL = 'audio_call';

    public const RED_PACKET = 'red_packet';

    public const GROUP = 1;

    public const PRIVATE = 0;

    public const TYPE = [
        self::TEXT,
        FileEnum::FILE,
        FileEnum::IMAGE,
        FileEnum::VIDEO,
        FileEnum::AUDIO,
        self::VIDEO_CALL,
        self::AUDIO_CALL,
        self::RED_PACKET,
    ];

    public const SIMPLE_CONTENT = [
        FileEnum::FILE => '[文件信息]',
        FileEnum::IMAGE => '[图片信息]',
        FileEnum::VIDEO => '[视频信息]',
        FileEnum::AUDIO => '[语音消息]',
        self::VIDEO_CALL => '[视频通话]',
        self::AUDIO_CALL => '[语音通话]',
        self::RED_PACKET => '[红包消息]',
    ];

    public const IS_GROUP = [self::PRIVATE, self::GROUP];
}
